<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html style="font-size: 50px;">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>任务传播</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/aem-h5/aem-h5.css" />
</head>
<body data-ext-version="1.4.2">
	<div id="app">
		<div>
			<div class="mint-navbar">
				<a class="mint-tab-item is-selected" data-toggle="tab" data-tab="tab1"><div
						class="mint-tab-item-icon"></div>
					<div class="mint-tab-item-label">详细版</div></a> 
					<a class="mint-tab-item" data-toggle="tab" data-tab="tab2"><div
						class="mint-tab-item-icon"></div>
					<div class="mint-tab-item-label">简版</div></a>
			</div>
			<div class="mint-tab-container">
				<div class="mint-tab-container-wrap">
					<div class="mint-tab-container-item">
						<div class="all-chart" style="width:100%;height:90%;"></div>
					</div>
					<div class="mint-tab-container-item" style="display: none;width:100%;height:90%;">
						
						<div class="child-chart"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/3.6.1/echarts.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/marketing/public.js"></script>
<script type="text/javascript" src="<%=path%>/js/aem/client/aem-disk-task.js"></script>
<script type="text/javascript" src="<%=path%>/js/aem/client/rem.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript">
var path = "<%=path%>";
//活动id
var aemId = getQueryString("aemId");
var accessToken=$.cookie('accessToken');
//accessToken = "9b9fb0035a64992bf26e00b905ec4545";
//类型 0导出所有节点 1导出有子节点的
var exportType=0;
$(function(){
	aemDiskTask.init(accessToken,aemId,exportType).initCount();
})
$("a[data-toggle='tab']").click(function(){
	$(".is-selected").removeClass("is-selected");
	if($(this).data("tab")=="tab1"){
		$(this).addClass("is-selected");
		exportType=0;
	}else if($(this).data("tab")=="tab2"){
		exportType=1;
		$(this).addClass("is-selected");
	}
	aemDiskTask.init(accessToken,aemId,exportType).initCount();
})
</script>
</html>